package com.opentool.web.http;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Builder
@Setter
@Getter
public class Response {
    private String code;
    private String message;
    private Object data;

    public Response(String code, String message){
        this.code=code;
        this.message=message;
    }

    public Response(String code, String message, Object data){
        this.code=code;
        this.message=message;
        this.data=data;
    }


    public static Response success(){
        return new Response("0000","执行成功");
    }
}
